\hypertarget{app__adc_8c}{}\section{applications/app\+\_\+adc.c File Reference}
\label{app__adc_8c}\index{applications/app\+\_\+adc.\+c@{applications/app\+\_\+adc.\+c}}
{\ttfamily \#include \char`\"{}app.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}ch.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}hal.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}stm32f4xx\+\_\+conf.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}mcpwm.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}timeout.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}utils.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}comm\+\_\+can.\+h\char`\"{}}\\*
{\ttfamily \#include \char`\"{}hw.\+h\char`\"{}}\\*
{\ttfamily \#include $<$math.\+h$>$}\\*
\subsection*{Macros}
\begin{DoxyCompactItemize}
\item 
\#define \hyperlink{app__adc_8c_a88250805d93ee01e7ffa6b5646835055}{M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E}~0.\+1
\item 
\#define \hyperlink{app__adc_8c_aa317aeb714ef31a44a77ce8ef6de24b4}{M\+I\+N\+\_\+\+M\+S\+\_\+\+W\+I\+T\+H\+O\+U\+T\+\_\+\+P\+O\+W\+E\+R}~500
\item 
\#define \hyperlink{app__adc_8c_a2db91fb5afeb4616925dca95c133fdb7}{F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S}~5
\item 
\#define \hyperlink{app__adc_8c_ae49fa3cbab7795f6abb4cde49025ccda}{R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S}~8
\end{DoxyCompactItemize}
\subsection*{Functions}
\begin{DoxyCompactItemize}
\item 
void \hyperlink{app__adc_8c_a97e337d374d339412ec581e59813e733}{app\+\_\+adc\+\_\+configure} (\hyperlink{structadc__config}{adc\+\_\+config} $\ast$conf)
\item 
void \hyperlink{app__adc_8c_ad9cf2cbbc4fbfadafddf610d1b52a7b6}{app\+\_\+adc\+\_\+start} (bool use\+\_\+rx\+\_\+tx)
\item 
float \hyperlink{app__adc_8c_afce881994c8db3b8205ed896220ca2ce}{app\+\_\+adc\+\_\+get\+\_\+decoded\+\_\+level} (void)
\item 
float \hyperlink{app__adc_8c_aa993a9c1d4ac51c09007d1e56932b868}{app\+\_\+adc\+\_\+get\+\_\+voltage} (void)
\end{DoxyCompactItemize}


\subsection{Macro Definition Documentation}
\hypertarget{app__adc_8c_a2db91fb5afeb4616925dca95c133fdb7}{}\index{app\+\_\+adc.\+c@{app\+\_\+adc.\+c}!F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S@{F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S}}
\index{F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S@{F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S}!app\+\_\+adc.\+c@{app\+\_\+adc.\+c}}
\subsubsection[{F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S}]{\setlength{\rightskip}{0pt plus 5cm}\#define F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S~5}\label{app__adc_8c_a2db91fb5afeb4616925dca95c133fdb7}
\hypertarget{app__adc_8c_a88250805d93ee01e7ffa6b5646835055}{}\index{app\+\_\+adc.\+c@{app\+\_\+adc.\+c}!M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E@{M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E}}
\index{M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E@{M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E}!app\+\_\+adc.\+c@{app\+\_\+adc.\+c}}
\subsubsection[{M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\+A\+X\+\_\+\+C\+A\+N\+\_\+\+A\+G\+E~0.\+1}\label{app__adc_8c_a88250805d93ee01e7ffa6b5646835055}
\hypertarget{app__adc_8c_aa317aeb714ef31a44a77ce8ef6de24b4}{}\index{app\+\_\+adc.\+c@{app\+\_\+adc.\+c}!M\+I\+N\+\_\+\+M\+S\+\_\+\+W\+I\+T\+H\+O\+U\+T\+\_\+\+P\+O\+W\+E\+R@{M\+I\+N\+\_\+\+M\+S\+\_\+\+W\+I\+T\+H\+O\+U\+T\+\_\+\+P\+O\+W\+E\+R}}
\index{M\+I\+N\+\_\+\+M\+S\+\_\+\+W\+I\+T\+H\+O\+U\+T\+\_\+\+P\+O\+W\+E\+R@{M\+I\+N\+\_\+\+M\+S\+\_\+\+W\+I\+T\+H\+O\+U\+T\+\_\+\+P\+O\+W\+E\+R}!app\+\_\+adc.\+c@{app\+\_\+adc.\+c}}
\subsubsection[{M\+I\+N\+\_\+\+M\+S\+\_\+\+W\+I\+T\+H\+O\+U\+T\+\_\+\+P\+O\+W\+E\+R}]{\setlength{\rightskip}{0pt plus 5cm}\#define M\+I\+N\+\_\+\+M\+S\+\_\+\+W\+I\+T\+H\+O\+U\+T\+\_\+\+P\+O\+W\+E\+R~500}\label{app__adc_8c_aa317aeb714ef31a44a77ce8ef6de24b4}
\hypertarget{app__adc_8c_ae49fa3cbab7795f6abb4cde49025ccda}{}\index{app\+\_\+adc.\+c@{app\+\_\+adc.\+c}!R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S@{R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S}}
\index{R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S@{R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S}!app\+\_\+adc.\+c@{app\+\_\+adc.\+c}}
\subsubsection[{R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S}]{\setlength{\rightskip}{0pt plus 5cm}\#define R\+P\+M\+\_\+\+F\+I\+L\+T\+E\+R\+\_\+\+S\+A\+M\+P\+L\+E\+S~8}\label{app__adc_8c_ae49fa3cbab7795f6abb4cde49025ccda}


\subsection{Function Documentation}
\hypertarget{app__adc_8c_a97e337d374d339412ec581e59813e733}{}\index{app\+\_\+adc.\+c@{app\+\_\+adc.\+c}!app\+\_\+adc\+\_\+configure@{app\+\_\+adc\+\_\+configure}}
\index{app\+\_\+adc\+\_\+configure@{app\+\_\+adc\+\_\+configure}!app\+\_\+adc.\+c@{app\+\_\+adc.\+c}}
\subsubsection[{app\+\_\+adc\+\_\+configure(adc\+\_\+config $\ast$conf)}]{\setlength{\rightskip}{0pt plus 5cm}void app\+\_\+adc\+\_\+configure (
\begin{DoxyParamCaption}
\item[{{\bf adc\+\_\+config} $\ast$}]{conf}
\end{DoxyParamCaption}
)}\label{app__adc_8c_a97e337d374d339412ec581e59813e733}
\hypertarget{app__adc_8c_afce881994c8db3b8205ed896220ca2ce}{}\index{app\+\_\+adc.\+c@{app\+\_\+adc.\+c}!app\+\_\+adc\+\_\+get\+\_\+decoded\+\_\+level@{app\+\_\+adc\+\_\+get\+\_\+decoded\+\_\+level}}
\index{app\+\_\+adc\+\_\+get\+\_\+decoded\+\_\+level@{app\+\_\+adc\+\_\+get\+\_\+decoded\+\_\+level}!app\+\_\+adc.\+c@{app\+\_\+adc.\+c}}
\subsubsection[{app\+\_\+adc\+\_\+get\+\_\+decoded\+\_\+level(void)}]{\setlength{\rightskip}{0pt plus 5cm}float app\+\_\+adc\+\_\+get\+\_\+decoded\+\_\+level (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{app__adc_8c_afce881994c8db3b8205ed896220ca2ce}
\hypertarget{app__adc_8c_aa993a9c1d4ac51c09007d1e56932b868}{}\index{app\+\_\+adc.\+c@{app\+\_\+adc.\+c}!app\+\_\+adc\+\_\+get\+\_\+voltage@{app\+\_\+adc\+\_\+get\+\_\+voltage}}
\index{app\+\_\+adc\+\_\+get\+\_\+voltage@{app\+\_\+adc\+\_\+get\+\_\+voltage}!app\+\_\+adc.\+c@{app\+\_\+adc.\+c}}
\subsubsection[{app\+\_\+adc\+\_\+get\+\_\+voltage(void)}]{\setlength{\rightskip}{0pt plus 5cm}float app\+\_\+adc\+\_\+get\+\_\+voltage (
\begin{DoxyParamCaption}
\item[{void}]{}
\end{DoxyParamCaption}
)}\label{app__adc_8c_aa993a9c1d4ac51c09007d1e56932b868}
\hypertarget{app__adc_8c_ad9cf2cbbc4fbfadafddf610d1b52a7b6}{}\index{app\+\_\+adc.\+c@{app\+\_\+adc.\+c}!app\+\_\+adc\+\_\+start@{app\+\_\+adc\+\_\+start}}
\index{app\+\_\+adc\+\_\+start@{app\+\_\+adc\+\_\+start}!app\+\_\+adc.\+c@{app\+\_\+adc.\+c}}
\subsubsection[{app\+\_\+adc\+\_\+start(bool use\+\_\+rx\+\_\+tx)}]{\setlength{\rightskip}{0pt plus 5cm}void app\+\_\+adc\+\_\+start (
\begin{DoxyParamCaption}
\item[{bool}]{use\+\_\+rx\+\_\+tx}
\end{DoxyParamCaption}
)}\label{app__adc_8c_ad9cf2cbbc4fbfadafddf610d1b52a7b6}
